<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    function foo(name,age){

      console.log("传入的参数",name,age);

      //在函数中都存在一个变量arguments
      console.log(arguments)
      // argumengs是一个对象
      console.log(typeof arguments)

      console.log(arguments[0])
      console.log(arguments[1])
    }

    foo("why",18)
  </script>
</body>
</html>